import request from '@/utils/request'
import data from "@/views/system/dict/data";

// 查询学生列表
export function listStudent(query) {
  return request({
    url: '/student/student/list',
    method: 'get',
    params: query
  })
}

// 查询学生列表
export function findall() {
  return request({
    url: '/student/student/findall',
    method: 'get',
  })
}
// 查询学生详细
export function getStudent(id) {
  return request({
    url: '/student/student/' + id,
    method: 'get'
  })
}

// 新增学生
export function addStudent(data) {
  return request({
    url: '/student/student',
    method: 'post',
    data: data
  })
}

// 修改学生
export function updateStudent(data) {
  return request({
    url: '/student/student',
    method: 'put',
    data: data
  })
}

// 学生留级转班
export function changeClass(data) {
  return request({
    url: '/student/student/changeClass',
    method: 'put',
    data: data
  })
}

// 删除学生
export function delStudent(id) {
  return request({
    url: '/student/student/' + id,
    method: 'delete'
  })
}
// // 修改学生状态
// export function updateState(id) {
//   return request({
//     url: '/student/student/updateState/' + id,
//     method: 'put',
//     data: data
//   })
// }
